﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace Shrestha.Charts.Commands
{
    class MetadataCommand: ICommand
    {
        public MetadataCommand(IViewModel cwvm)
        {
            this._vm = cwvm;
        }

        public bool CanExecute(object parameter)
        {
            return _vm.CheckMeta();
        }

        public event EventHandler CanExecuteChanged;

        public void Execute(object parameter)
        {
            _vm.Draw();
        }

        private IViewModel _vm { get; set; }
    }
}
